import requests
r=requests.post(
    "http://localhost/temp/urllib.php",
    headers={'cookie':'a=b;c=d'},
    data= {"asd4":"abc"},
)
print(r.headers)